package collegemenu;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import javax.swing.BoxLayout;
// 장학금
public class scholarship extends JPanel {
	private JTable table_1;
	private JTable table;
	private JTable table_2;

	
	public scholarship() {
		//label1();
		//label2();
		//label3();
		//table1();
		//table2();
		//table3();
		setLayout(new BorderLayout(0, 0));
		
		String[] colwmn ={"장학명","장학자격","지원내용","신청기간","비고"};
		String[][] row = {{"11","11","11","11","11"},
				{"11","11","11","11","11"},
				{"11","11","11","11","11"}};
		
		JPanel panel_1 = new JPanel();
		add(panel_1, BorderLayout.WEST);
		panel_1.setLayout(new BorderLayout(0, 0));
		JPanel 국가장학금 = new JPanel();
		add(국가장학금, BorderLayout.NORTH);
		국가장학금.setLayout(new BorderLayout(0, 0));
		
		JLabel lblNewLabel = new JLabel("국가장학금");
		국가장학금.add(lblNewLabel);
		
		JPanel panel_2 = new JPanel();
		panel_1.add(panel_2, BorderLayout.NORTH);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setPreferredSize(new Dimension(480, 75));
		panel_2.add(scrollPane);
		
		table = new JTable(row,colwmn);
		scrollPane.setViewportView(table);
	
		
		
		
		
		
		String[] colwmn1 ={"장학명","장학자격","지원내용","신청기간","비고"};
		String[][] row1 = {{"11","11","11","11","11"},
				{"11","11","11","11","11"},
				{"11","11","11","11","11"}};
		
		JPanel panel = new JPanel();
		panel_1.add(panel, BorderLayout.CENTER);
		panel.setLayout(new BorderLayout(0, 0));
		
		JPanel panel_3 = new JPanel();
		panel.add(panel_3, BorderLayout.NORTH);
		panel_3.setLayout(new BorderLayout(0, 0));
		
		JLabel lblNewLabel_1 = new JLabel("교내장학금");
		panel_3.add(lblNewLabel_1);
		
		JPanel panel_4 = new JPanel();
		panel.add(panel_4, BorderLayout.CENTER);
		panel_4.setLayout(new BorderLayout(0, 0));
		
		JPanel panel_5 = new JPanel();
		panel_4.add(panel_5, BorderLayout.NORTH);
		
		JScrollPane scrollPane_1 = new JScrollPane();
		scrollPane_1.setPreferredSize(new Dimension(480, 75));
		panel_5.add(scrollPane_1);
		
		table_1 = new JTable(row1,colwmn1);
		scrollPane_1.setViewportView(table_1);
		
		String[] colwmn2 ={"장학명","장학자격","지원내용","신청기간","비고"};
		String[][] row2 = {{"11","11","11","11","11"},
				{"11","11","11","11","11"},
				{"11","11","11","11","11"}};
		
		JPanel panel_6 = new JPanel();
		panel_4.add(panel_6, BorderLayout.CENTER);
		panel_6.setLayout(new BorderLayout(0, 0));
		
		JPanel panel_7 = new JPanel();
		panel_6.add(panel_7, BorderLayout.NORTH);
		panel_7.setLayout(new BorderLayout(0, 0));
		
		JLabel lblNewLabel_2 = new JLabel("교외장학금");
		panel_7.add(lblNewLabel_2);
		
		JPanel panel_8 = new JPanel();
		panel_6.add(panel_8, BorderLayout.EAST);
		panel_8.setLayout(new BorderLayout(0, 0));
		
		JPanel panel_9 = new JPanel();
		panel_8.add(panel_9, BorderLayout.NORTH);
		
		JScrollPane scrollPane_2 = new JScrollPane();
		scrollPane_2.setPreferredSize(new Dimension(480, 75));
		panel_9.add(scrollPane_2);
		
		table_2 = new JTable(row2,colwmn2);
		scrollPane_2.setViewportView(table_2);
	}

}
